package com.employee.seckill.service;

import com.employee.seckill.entity.Employee;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * ClassName: EmployeeService
 * Package: com.employee.seckill.service
 * Description:
 *
 * @Author 刘荟雅
 * @Create 2025/9/10 19:17
 * @Version 1.0
 */
public interface EmployeeService {
    List<Employee> listAll();
    //姓名模糊查询 + 部门精确查询
    PageInfo<Employee> listByCondition(String name, String dept, int pageNum, int pageSize);    Employee findById(Long id);

    void add(Employee emp);

    void update(Employee emp);

    void delete(Long id);

}
